<br />
<form  method="post" id="cari" action="<?php echo site_url()?>peminjaman/cari" enctype="multipart/form-data">
<label> NIM</label>
<input type="text" name="search" size="20" >
<input type="submit" name="cari" value="Cari">
</form>


<table width="443" border="0" cellpadding="0" cellspacing="0" class="table">
  <tr>
    <th width="32">No</th>
	<th width="120">Nim</th>
    <th width="320">Nama</th>
    <th width="91">Aksi</th>
 
  </tr>
 <?php $i=1+$urutan; ?>
  <?php foreach ($query as $row) { ?>
  <tr class="<?php if ($i %2 == 0) echo 'zebra';?>">
    <td><?php echo $i; ?></td>
	 <td><?php echo $row['nim'] ?></td>
    <td><?php echo $row['nama'] ?></td>
    <td><a href="<?php echo base_url().'peminjaman/tambah/'.$row['id_member'] ?>">Tambah</a></td>
<?php $i++;
 } ?>
  </tr>
  
</table>
<?php echo $this->pagination->create_links();?>